package es.uc3m.setichat.clases;


public class SeTIChatMessageContent {
	
	public SeTIChatContentContactResponse contactResponse;
	public SeTIChatMessageChat chatMessage;
	public SeTIChatContentResponse response;
	public SeTIChatContentDownload download;
	public String revocation;
	
	public SeTIChatMessageContent(int type){
		switch(type){
			case 3	: //ContactResponse
				contactResponse = new SeTIChatContentContactResponse();
				break;
			case 4	: //ChatMessage
				chatMessage = new SeTIChatMessageChat();
				break;
			case 6	: //Response
				response = new SeTIChatContentResponse();
				break;
			case 7	: //Revocation
				revocation = "";
				break;
			case 8	: //Download
				download = new SeTIChatContentDownload();
				break;
			
		}
	}	
}
